// pages/destination/destination.js
Page({
  data:{
    hotcity:["热门","周边","玩乐","演出","餐厅","商店","酒店","活动"],
	nearbyCity:["哈利·波特的魔法世界","小黄人乐园","功夫熊猫盖世之地","侏罗纪世界努布拉岛","变形金刚基地","未来水世界","好莱坞"],
	active:7,
    hotView:[{
      title:"路线一：亲子团聚游",
      imgUrl:"https://www.universalbeijingresort.com/sites/default/files/2021-07/magic%20wand1080x600.png"
    },{
      title:"路线二：活力夏日游",
      imgUrl:"https://www.universalbeijingresort.com/sites/default/files/2021-09/detailpage2_2.png"
    },{
		title:"路线三：激情冒险游",
		imgUrl:"https://www.universalbeijingresort.com/sites/default/files/2021-09/Transformers-%20Battle%20for%20the%20AllSpark_0.jpg"
	  },{
		title:"路线四：童真童趣游",
		imgUrl:"https://www.universalbeijingresort.com/sites/default/files/2021-09/Kung%20Fu%20Panda%20Journey%20of%20the%20Dragon%20Warrior_0.jpg"
	  },{
		title:"路线五：精彩考古游",
		imgUrl:"https://www.universalbeijingresort.com/sites/default/files/2021-09/Raptor%20Encounter_0.jpg"
	  },{
		title:"路线六：拍照打卡游",
		imgUrl:"https://www.universalbeijingresort.com/sites/default/files/2021-09/detailpage2_4.png"
	  }]
  },
  activeClick (e){
    let index=e.currentTarget.dataset.index;
     this.setData({
       active:index
     })
  },
    // 进入线路详情
  enterDetail(e) {
    let sid=e.currentTarget.dataset.id;
    wx.navigateTo({
      url: '../index/view-detail/view-detail?sid='+sid+''
    })
  },
  enterCity(e){
    let cityname=e.currentTarget.dataset.cityname;
    wx.navigateTo({
	  url: "cityView/cityView",
	//   url: 'cityView/cityView?cityname='+cityname+''
    })
  }
})